<?php
class GoogleAnalytics extends DataObjectDecorator
{
        function extraStatics(){
                return array(
                        'db' => array(
                                'GoogleAnalyticsAccountID' => 'Text'
                        )
                );
        }
         
        public function updateCMSFields(FieldSet $fields) {
                //$fields->addFieldToTab('Root', new Tab('GoogleAnalytics'), 'Access');
                $fields->addFieldToTab('Root.GoogleAnalytics', new TextField('GoogleAnalyticsAccountID', 'Google Analytics Code (Bijvoorbeeld: UA-XXXXXXXX-X)', '', 13));
        }
         
        function contentControllerInit($controller) {
        }
         
}